package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单退货申请 
 *
 * @author WeiZiDong
 */
@Table(name = "`oms_order_return_apply`")
@Data
@ApiModel("订单退货申请")
public class OmsOrderReturnApply implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "id", example = "1")
    private Integer id;
    @Column(name = "`order_id`")
    @ApiModelProperty(value = "订单id", example = "1")
    private Integer orderId;
    @Column(name = "`sub_order_id`")
    @ApiModelProperty(value = "子订单id", example = "1")
    private Integer subOrderId;
    @Column(name = "`product_id`")
    @ApiModelProperty(value = "商品ID", example = "1")
    private Integer productId;
    @Column(name = "`product_count`")
    @ApiModelProperty(value = "退货数量", example = "1")
    private Integer productCount;
    @Column(name = "`return_amount`")
    @ApiModelProperty(value = "退款金额", example = "1")
    private Integer returnAmount;
    @Column(name = "`status`")
    @ApiModelProperty(value = "申请状态1-待处理；2-&gt;同意；3-&gt;拒绝", example = "1")
    private Integer status;
    @Column(name = "`reason`")
    @ApiModelProperty(value = "原因", example = "String")
    private String reason;
    @Column(name = "`proof_pics`")
    @ApiModelProperty(value = "凭证图片，以逗号隔开", example = "String")
    private String proofPics;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
